﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace POS
{
    public partial class Testing : DevExpress.XtraEditors.XtraForm
    {
        public Testing()
        {
            InitializeComponent();
        }

        private void Testing_Load(object sender, EventArgs e)
        {
            DateTime fff = new DateTime(2015, 2, 2);
            lblTodaysDate.Text  = fff.ToLongDateString();

            lblOAdate.Text =  fff.ToOADate().ToString();

            string[] test = lblOAdate.Text.Split('.');
            double tttt = Convert.ToDouble(test[0]);

            DateTime ttt = DateTime.FromOADate(tttt);
            lblFromOAdate.Text = (ttt.ToShortDateString());

             
        }
    }
}